Initializing QuickDraw GX Printing
For your application to use QuickDraw GX, the user must be running system software version 7.1 or later. To test for the existence of QuickDraw GX printing features, use theGestalt
function. The Gestalt selector isgestaltPrintingMgrVersion
('pmgr'
). TheGestalt
function is discussed in Inside Macintosh: QuickDraw GX Environment and Utilities.
After you call the
- Note
- The Gestalt selector for the entire QuickDraw GX feature set is
gestaltGXVersion
. This selector is discussed in Inside Macintosh: Environment and Utilities.![]()
GXEnterGraphics
function to initialize QuickDraw GX, you call theGXInitPrinting
function to initialize QuickDraw GX printing features. TheGXEnterGraphics
function is discussed in Inside Macintosh: QuickDraw GX Environment and Utilities.To terminate printing with QuickDraw GX, you must call the
GXExitPrinting
function. You can only use this function after you have successfully called theGXInitPrinting
function and before you call theGXExitGraphics
function to shut down QuickDraw GX:
OSErr err; ... GXEnterGraphics(); err = GXInitPrinting(); /* Set up print facility */ if (!err) { /* The event loop and more initialization goes here */ ... } GXExitPrinting(); /* Close QuickDraw GX printing. */ GXExitGraphics();
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help